<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/stylesheets/loginOrregis.css"/>
</head>
<body ng-app="myApp" ng-controller="loginCtrl" name="userForm">
<div class="container">
    <div id="loginDiv">
        <div class="panel-heading lo">登录</div>
        <form ng-submit="loginSubmit()" novalidate name="userForm">
            <div class="registerInfo">
                <label for="username">用户名:</label>
                <input id="username" name="username" ng-model="userdata.username" required>
                <span class="err" ng-show="userForm.username.$error.required && userForm.username.$touched">用户名不能为空</span>
                <label for="password">密码:</label>
                <input id="password" name="password" type="password" ng-model="userdata.password" required>
                <span class="err" ng-show="userForm.password.$error.required && userForm.password.$touched">密码不能为空</span>
            </div>
            <div class="loginSubmitDIv">
                <div class="error">{{message}}</div>
                <button id="loginSubmit" type="submit">登录</button>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="/javascripts/angular.min.js"></script>
<script type="text/javascript" src="/javascripts/myApp.js"></script>
<script type="text/javascript" src="/javascripts/login_register.js"></script>
<script>

</script>
</body>
</html>